[gd_scene load_steps=7 format=3 uid="uid://cdvb2hjpjbfit"]

[ext_resource type="Script" path="res://scenes/fish/fish.gd" id="1_q6o8j"]
[ext_resource type="Texture2D" uid="uid://b50p4cw37wjyp" path="res://sprites/fish/png/fish.png" id="2_eij25"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_e1lpj"]

[sub_resource type="Animation" id="Animation_dcm26"]
resource_name = "Collected"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(0.05, 0.1)]
}
tracks/1/type = "method"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.5),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"queue_free"
}]
}

[sub_resource type="Animation" id="Animation_5lsts"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_jmv5s"]
_data = {
"Collected": SubResource("Animation_dcm26"),
"RESET": SubResource("Animation_5lsts")
}

[node name="fish" type="Area2D"]
collision_layer = 2
collision_mask = 2
script = ExtResource("1_q6o8j")
metadata/_edit_group_ = true

[node name="Sprite2D" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_e1lpj")
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_eij25")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_jmv5s")
}

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
scale = Vector2(0.5, 0.5)
polygon = PackedVector2Array(-2, -43, 4, -38, 5, -25, 21, -13, 33, 1, 62, -10, 68, -5, 72, 7, 71.6, 19, 68, 29, 59, 36, 38, 27, 30, 19, 15, 24, -3, 26, 2, 35, 0, 42, -5, 47, -16, 47, -23, 44, -32, 35, -38.3, 23, -63, 10, -73, -3, -63, -16, -54, -25, -36, -33.3, -36, -44, -33, -48)
